|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.Mesh
com.jme3.scene.shape.AbstractBox
ga.view.streaming.showroom.Wall
public class Wall
This is special type of a box where the walls become invisible when viewed
from outside. The code is adapted from Box
and slightly changed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme3.scene.Mesh |
---|
com.jme3.scene.Mesh.Mode |
Field Summary | |
---|---|
private static short[] |
GEOMETRY_INDICES_DATA
|
private static float[] |
GEOMETRY_NORMALS_DATA
|
private static float[] |
GEOMETRY_TEXTURE_DATA
|
Fields inherited from class com.jme3.scene.shape.AbstractBox |
---|
center, xExtent, yExtent, zExtent |
Constructor Summary | |
---|---|
Wall()
Empty constructor for serialization only. |
|
Wall(float x,
float y,
float z)
Creates a new box. |
|
Wall(com.jme3.math.Vector3f center,
float x,
float y,
float z)
Creates a new box. |
|
Wall(com.jme3.math.Vector3f min,
com.jme3.math.Vector3f max)
Constructor instantiates a new Box object. |
Method Summary | |
---|---|
Wall |
clone()
Creates a clone of this box. |
protected void |
duUpdateGeometryIndices()
|
protected void |
duUpdateGeometryNormals()
|
protected void |
duUpdateGeometryTextures()
|
protected void |
duUpdateGeometryVertices()
|
Methods inherited from class com.jme3.scene.shape.AbstractBox |
---|
computeVertices, getCenter, getXExtent, getYExtent, getZExtent, read, updateGeometry, updateGeometry, updateGeometry, write |
Methods inherited from class com.jme3.scene.Mesh |
---|
clearBuffer, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, prepareForAnim, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final short[] GEOMETRY_INDICES_DATA
private static final float[] GEOMETRY_NORMALS_DATA
private static final float[] GEOMETRY_TEXTURE_DATA
Constructor Detail |
---|
public Wall(float x, float y, float z)
The box has a center of 0,0,0 and extends in the out from the center by the given amount in each direction. So, for example, a box with extent of 0.5 would be the unit cube.
x
- the size of the box along the x axis, in both directions.y
- the size of the box along the y axis, in both directions.z
- the size of the box along the z axis, in both directions.public Wall(com.jme3.math.Vector3f center, float x, float y, float z)
The box has the given center and extends in the out from the center by the given amount in each direction. So, for example, a box with extent of 0.5 would be the unit cube.
center
- the center of the box.x
- the size of the box along the x axis, in both directions.y
- the size of the box along the y axis, in both directions.z
- the size of the box along the z axis, in both directions.public Wall(com.jme3.math.Vector3f min, com.jme3.math.Vector3f max)
Box
object.
The minimum and maximum point are provided, these two points define the
shape and size of the box but not it’s orientation or position. You
should use the #setLocalTranslation()
and
#setLocalRotation()
methods to define those properties.
min
- the minimum point that defines the box.max
- the maximum point that defines the box.public Wall()
Method Detail |
---|
public Wall clone()
The cloned box will have ‘_clone’ appended to it’s name, but all other properties will be the same as this box.
clone
in class com.jme3.scene.Mesh
protected void duUpdateGeometryIndices()
duUpdateGeometryIndices
in class com.jme3.scene.shape.AbstractBox
protected void duUpdateGeometryNormals()
duUpdateGeometryNormals
in class com.jme3.scene.shape.AbstractBox
protected void duUpdateGeometryTextures()
duUpdateGeometryTextures
in class com.jme3.scene.shape.AbstractBox
protected void duUpdateGeometryVertices()
duUpdateGeometryVertices
in class com.jme3.scene.shape.AbstractBox
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |